import service from "@/utils/service";
import type { LoginModel } from "./index.d";
import type { BaseResponse } from "../index.d";
export const loginApi = (
  data: LoginModel.authRequest
): Promise<BaseResponse<LoginModel.authResponse>> => {
  return service({
    url: "/login",
    method: "POST",
    data,
  });
};
export const logOutApi = (): Promise<BaseResponse<Boolean>> => {
  return service({
    url: "/logout",
    method: "POST",
  });
};
